Skip to content

[Fix #22254] Put real storage behind PM_STRING_EMPTY - #4228

Merged
Earlopain merged 1 commit into
ruby:mainfrom
Earlopain:empty-string-with-storage
Sep 23, 2026
Merged

Earlopain merged 1 commit into
ruby:mainfrom
Earlopain:empty-string-with-storage

Conversation

@Earlopain

Copy link
Copy Markdown
Collaborator

Some places memcpy the source, and NULL there is undefined behaviour.

Fixes https://bugs.ruby-lang.org/issues/22254

Some places memcpy the source, and NULL there is undefined behaviour.

Fixes https://bugs.ruby-lang.org/issues/22254
@Earlopain
Earlopain force-pushed the empty-string-with-storage branch from b37151f to 839c1a1 Compare September 14, 2026 12:16
@Earlopain Earlopain changed the title Put real storage behind PM_STRING_EMPTY [Fix Put real storage behind PM_STRING_EMPTY Sep 14, 2026
@Earlopain Earlopain changed the title [Fix Put real storage behind PM_STRING_EMPTY [Fix #22254] Put real storage behind PM_STRING_EMPTY Sep 14, 2026
@Earlopain
Earlopain merged commit d0b36ce into ruby:main Sep 23, 2026
110 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Sep 23, 2026
storage behind `PM_STRING_EMPTY`
(ruby/prism#4228)

Some places memcpy the source, and NULL there is undefined behaviour.

Fixes https://bugs.ruby-lang.org/issues/22254

ruby/prism@d0b36ceb34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant